<?php
//No direct access
defined('_JEXEC') or die('Restricted access');
//print_r($this->rows);
?>

<div id="ownservices">
 <div id="mainmenuownservice"><?php echo MenuHelper::nav(); ?></div>
	<div id="mainownservice">
		<h3><?php echo JText::_('OWNSERVICE_EXCHANGE_RATE'); ?></h3>
		<hr />
		<div id="toolbar"> </div>
		<div class="clear"> </div>
		<table>
			<tr>
				<td width="100%"> </td>
				<td nowrap="nowrap"> </td>
			</tr>
		</table>
		<table class="adminlist" cellspacing="1">
			<tr>
				<td align="center" class="tablelist"><?php echo JHTML::_('grid.sort',  'OWNSERVICE_CURRENCY', 'c.name', $this->lists['order_Dir'], $this->lists['order'] ); ?></td>
				<td align="center" class="tablelist"><?php echo JHTML::_('grid.sort',  'OWNSERVICE_EXCHANGE_RATE', 'r.rate', $this->lists['order_Dir'], $this->lists['order'] ); ?></td>
			</tr>
			<?php
				$k = 0;
				$dateformat  = OwnserviceHelper::getParams('date_format', '%d/%m/%Y'); 
				for($i=0,$n=count($this->rows);$i<$n;$i++): 
					$row = $this->rows[$i];
			?>
				<tr class="<?php echo "row$k"; ?>">
					<td class="inner_tablelist" align="center"><?php echo $row->name; ?></td>
					<td class="inner_tablelist" align="center"><?php echo $row->rate.' '.$row->code; ?></td>
				</tr>
			<?php 
				$k = 1 - $k; 
				endfor; 
			?>												
		</table>
	</div>
 </div>